﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="MW.Web.Detail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
        function ShowMARC() {
            var divTemp = document.getElementById("divMARC");
            var linkTemp = document.getElementById("linkShowMARC");

            if (divTemp.style["display"] == "none") {
                divTemp.style["display"] = "";
                linkTemp.innerText = "隐藏";
            } else {
                divTemp.style["display"] = "none";
                linkTemp.innerText = "显示";
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table>
        <tr>
            <td>
                <a href="Default.aspx"><img src="images/logo_header.png" style="border:0px;" /></a>
            </td>
            <td style="padding: 10 0 10 0;">
                <asp:TextBox ID="txtSearchHeader" runat="server" Style="width: 300px;" />
                <asp:Button ID="btnSearchHeader" runat="server" Text="Metadata 搜索" Style="width: 120px;"
                    OnClick="btnSearchHeader_Click" />
            </td>
        </tr>
    </table>
    <div style="background-color: #d5ddf3; border-top: solid 1px #6b90da; font-size: small;
        padding: 8px;">
        <strong>
            <asp:Literal ID="ltlTitleHeader" runat="server" /></strong>的详细信息
    </div>
    <div style="padding: 15px; border: solid 1px gray">
        <table style="vertical-align: top; font-size: small;">
            <tr>
                <td width="100px">
                    题名
                </td>
                <td>
                    <asp:Literal ID="ltlTitle" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    主题
                </td>
                <td>
                    <asp:Literal ID="ltlSubject" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    创建者
                </td>
                <td>
                    <asp:Literal ID="ltlCreator" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    类型
                </td>
                <td>
                    <asp:Literal ID="ltlType" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    日期
                </td>
                <td>
                    <asp:Literal ID="ltlDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    出版者
                </td>
                <td>
                    <asp:Literal ID="ltlPublisher" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    其他责任者
                </td>
                <td>
                    <asp:Literal ID="ltlContributor" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    描述
                </td>
                <td>
                    <asp:Literal ID="ltlDescription" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    格式
                </td>
                <td>
                    <asp:Literal ID="ltlFormat" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    语种
                </td>
                <td>
                    <asp:Literal ID="ltlLanguage" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    覆盖范围
                </td>
                <td>
                    <asp:Literal ID="ltlCoverage" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    标识符
                </td>
                <td>
                    <asp:Literal ID="ltlIdentifier" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    关联
                </td>
                <td>
                    <asp:Literal ID="ltlRelation" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    权限
                </td>
                <td>
                    <asp:Literal ID="ltlRights" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    来源
                </td>
                <td>
                    <asp:Literal ID="ltlSource" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    <div style="background-color: #d5ddf3; font-size: small; padding: 8px; margin-top: 20px;">
        MARC信息 <a id="linkShowMARC" href="javascript:ShowMARC();">显示</a>
    </div>
    <div id="divMARC" style="display: none; border: solid 1px gray; word-wrap: break-word;
        font-size: smaller">
        <asp:Literal ID="ltlMARCXML" runat="server" />
    </div>
    <div>
        <div style="background-color: #d5ddf3; font-size: small; padding: 8px; margin-top: 20px;">
            相关书籍
        </div>
        <asp:ListView ID="lvResult" runat="server">
            <ItemTemplate>
                <div style="padding: 15px;">
                    <div>
                        <a href='Detail.aspx?uid=<%# Eval("Meta.UniqueID") %>'>
                            <%# Convert.ToString(Eval("Title")).Replace("|", "&nbsp;") %>
                        </a>
                    </div>
                    <div style="font-size: small;">
                        <%# Convert.ToString(Eval("Description")).Replace("|", "<br />") %>
                    </div>
                </div>
            </ItemTemplate>
            <LayoutTemplate>
                <div runat="server" id="itemPlaceholder">
                </div>
            </LayoutTemplate>
        </asp:ListView>
    </div>
    </form>
</body>
</html>
